﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ordinapoche.Core
{
    public class OrgAssemblerInstruction : AssemblerInstruction
    {
        public override bool ResolveSymbolsPass (ref int? aLocation, IDictionary<string, int> aSymbols, bool aLastChance)
        {
            if (ComputeData (aSymbols, aLastChance))
            {
                aLocation = DataValue;
                RegisterSymbol (DataValue, aSymbols);
                return true;
            }
            else
            {
                aLocation = null;
                return false;
            }
        }
    }
}
